package com.otitan.forest.right.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.otitan.forest.right.dto.LoginDto;
import com.otitan.forest.right.dto.UpdatePwdDto;
import com.otitan.forest.right.entity.SysUserEntity;
import com.otitan.webapp.framework.basepro.model.DataResult;

import java.util.List;

/**
 * 用户
 *
 * @author xiazw
 * @email *****@mail.com
 * @date 2020-08-04 14:19:45
 */
public interface SysUserService extends IService<SysUserEntity> {
    SysUserEntity findByUserName(String username);

    DataResult login(SysUserEntity sysUser);

    SysUserEntity packagePassword(SysUserEntity userEntity);

    void checkUpdateUser(SysUserEntity userEntity);

    List<SysUserEntity> findByGroupId(String groupId);

    DataResult dataSynchronization(String uuid);

    DataResult zhlyLogin(LoginDto sysUser);


    DataResult updatePwdByUsername(UpdatePwdDto updatePwdDto);
}

